export default [
  {
    name: "simple-maintenance",
    path: "/simple-maintenance",
    redirect: { name: "simple-maintenance-list" },
    component: () => import("../pages/layout"),
    children: (style => [
      {
        desc: "数据列表页面",
        name: "simple-maintenance-list",
        path: "index/:id",
        component: () => import(`../pages/styles/${style}/index`),
        children: [
          {
            desc: "新建数据页",
            name: "simple-maintenance-create",
            path: "create",
            component: () => import(`../pages/styles/${style}/create`)
          },
          {
            desc: "编辑数据页",
            name: "simple-maintenance-update",
            path: "update",
            component: () => import(`../pages/styles/${style}/update`)
          }
        ]
      }
    ])("default")
  }
];
